<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateProductImagesTable extends Migration
{
    public function up()
    {
        Schema::create('product_images', function (Blueprint $table) {
            $table->id();
	        $table->unsignedBigInteger('product_id')->index()->default(0)->comment('product');
	        $table->string('image')->nullable()->comment('image');
	        $table->string('brief')->nullable();
            $table->timestamps();
        });
    }
    
    public function down()
    {
        Schema::dropIfExists('product_images');
    }
}
